﻿using MediatR;

namespace Swimj.DomainLib.SeedWork
{
    public interface IEntity
    {
        IReadOnlyCollection<INotification>? DomainEvents { get; }

        void ClearDomainEvents();
    }

    public interface IEntity<TKey> : IEntity
    {
        TKey Id { get; }
    }
}